package com.bounds.sysmgnt.spring;

import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

public class SpringBean implements ApplicationContextAware {
	
	private static ApplicationContext context = null;
	
	public void setApplicationContext(ApplicationContext context){
       this.context=context;
    }

	public static Object getBean(String name){
	   return context.getBean(name);
	}

}
